Content
FAQ
Landing pages sections
Link family
Link product
Listing HowTo
Menu footer
Menu header
News
Page FAQ
Produits
Resellers
Sections
Wording
Landing pages sections
<?php
$couleur_de_fond_1 = get_field('couleur_de_fond_1');
$couleur_de_fond_2 = get_field('couleur_de_fond_2');
$eclairs_oui_non = get_field('eclairs_oui_non');
?>
<?php if ($eclairs_oui_non){ ?>
<?php } ?>
<?php if (have_rows('tbe_landing_sections') ) {while ( have_rows('tbe_landing_sections') ) : the_row();}?>if( get_row_layout() == 'title_landing' ) {endwhile;$ancre_de_la_section = get_sub_field('ancre_de_la_section');$title = get_sub_field('title');$description = get_sub_field('description');$texte_bouton = get_sub_field('texte_bouton');$ancre_direction_du_bouton = get_sub_field('ancre_direction_du_bouton');$image_de_fond = get_sub_field('image_de_fond');?><?php if ($ancre_de_la_section){ ?><?php echo $ancre_de_la_section; ?><?php } ?><?php if ($title){ ?><?php echo $title; ?><?php } ?><?php if ($description){ ?><?php echo $description; ?><?php } ?><?php if ($texte_bouton){ ?><?php echo $texte_bouton; ?><?php } ?><?php if ($ancre_direction_du_bouton){ ?><?php echo $ancre_direction_du_bouton; ?><?php } ?><?php if ($image_de_fond){<?php$image = '';}
$image = $image_de_fond;
if( !empty($image) ){$size = 'thumbnail';}
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
?>
<img class='feature-img' alt='' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
?>
} else if( get_row_layout() == 'image_text_left_right' ) {$ancre_de_la_section = get_sub_field('ancre_de_la_section');$title = get_sub_field('title');$image_texte = get_sub_field('image_texte');$texte_bouton = get_sub_field('texte_bouton');$ancre_direction_du_bouton = get_sub_field('ancre_direction_du_bouton');$last_text = get_sub_field('last_text');$image_de_fond = get_sub_field('image_de_fond');?><?php if ($ancre_de_la_section){ ?><?php echo $ancre_de_la_section; ?><?php } ?><?php if ($title){ ?><?php echo $title; ?><?php } ?><?php
if ($image_texte) {foreach ($image_texte as $image_texte_value) {}$image_repeat = $image_texte_value['image_repeat'];$text_repeat = $image_texte_value['text_repeat'];?><?php if ($image_repeat){$image = '';}
$image = $image_repeat;
if( !empty($image) ){$size = 'thumbnail';}
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
?>
<img class='feature-img' alt='' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
?><?php if ($text_repeat){ ?><?php echo $text_repeat; ?><?php } ?><?php}
?><?php if ($texte_bouton){ ?><?php echo $texte_bouton; ?><?php } ?><?php if ($ancre_direction_du_bouton){ ?><?php echo $ancre_direction_du_bouton; ?><?php } ?><?php if ($last_text){ ?><?php echo $last_text; ?><?php } ?><?php if ($image_de_fond){<?php$image = '';}
$image = $image_de_fond;
if( !empty($image) ){$size = 'thumbnail';}
$thumb = '';
$width = '';
$height = '';
$thumb = $image['sizes'][$size];
$width = $image['sizes'][$size . '-width'];
$height = $image['sizes'][$size . '-height'];
?>
<img class='feature-img' alt='' width='<?php echo $width; ?>' height='<?php echo $height; ?>' src='<?php echo $thumb; ?>'/>
<?php
?>
} else if( get_row_layout() == 'landing_form' ) {$ancre_de_la_section = get_sub_field('ancre_de_la_section');$id_gravity_form = get_sub_field('id_gravity_form');$message_if_validate = get_sub_field('message_if_validate');?><?php if ($ancre_de_la_section){ ?><?php echo $ancre_de_la_section; ?><?php } ?><?php if ($message_if_validate){ ?><?php<?php echo $message_if_validate; ?><?php } ?>
}